package main

import (
	"fmt"
	"time"
)

var selectStopChan chan int

func main() {

	selectStopChan = make(chan int)

	go func() {
		selectStopChan <- 0
	}()

	for {
		select {
		case <-selectStopChan:
			fmt.Println(">>>>>> stio chan >>>>>")
			return
		case <-time.After(3 * time.Second):
			fmt.Println("select case chan >>>>>>")
		}
		fmt.Println("for >>>>>>")
	}
}
